package utils;

public enum DataType {

	OBJECT ( 0, "对象"),
	CHAR ( 1, "字符"),
    STRING ( 2, "字符串"),
    AMOUNT ( 4, ""),
    PRICE ( 8, "价格"),
    MONEY ( 16, "金钱"),
    DATE ( 32, "日期"),
    DATETIME ( 64, "日期时间"),
    LONGDATETIME ( 128, "长时间"),
    SHORTTIME ( 256, "短时间"),
    TIME ( 512, "时间"),
    INT ( 1024, "整型"),
    BOOLEAN ( 2048, "布尔型"),
    PERCENT(  4096, "百分数");
	
	private int code;
	private String name;
	
	private DataType(int code, String name){
		this.code = code;
		this.name = name;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
}
